import request from '@/utils/request'

// 查询商品参数值列表
export function listSpecification_mapping(query) {
  return request({
    url: '/catalog/specification_mapping/list',
    method: 'get',
    params: query
  })
}

// 查询商品参数值详细
export function getSpecification_mapping(mappingId) {
  return request({
    url: '/catalog/specification_mapping/' + mappingId,
    method: 'get'
  })
}

// 新增商品参数值
export function addSpecification_mapping(data) {
  return request({
    url: '/catalog/specification_mapping',
    method: 'post',
    data: data
  })
}

// 修改商品参数值
export function updateSpecification_mapping(data) {
  return request({
    url: '/catalog/specification_mapping',
    method: 'put',
    data: data
  })
}

// 删除商品参数值
export function delSpecification_mapping(mappingId) {
  return request({
    url: '/catalog/specification_mapping/' + mappingId,
    method: 'delete'
  })
}

// 导出商品参数值
export function exportSpecification_mapping(query) {
  return request({
    url: '/catalog/specification_mapping/export',
    method: 'get',
    params: query
  })
}